Be more robust against X breakage
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 19 Feb 2009 19:13:10 +0000 (19:13 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 19 Feb 2009 19:13:10 +0000 (19:13 +0000)
svn path=/trunk/; revision=22378

ChangeLog
gdk/x11/gdkscreen-x11.c

index 3e25f4329cc5e0ee78481ad4d41ca912a71a9d01..53383e400f7291ac7889fb5db6ce8d263ffd211f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-02-19  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 572387 – gdm crashes after gtk 2.15.4 upgrade
+
+       * gdk/x11/gdkscreen-x11.c (init_xrandr13): If X is broken and returns
+       no monitors, fall back to other multihead init methods, so that we
+       at least get one monitor set up.
+
 2009-02-19  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtkmountoperation.c: sort functions so their order is more
index 1902a350a09eb57ca4b3e65de79506e55f876bed..3b9a8455f171b421100e05a6386611e15771a2b8 100644 (file)
@@ -735,7 +735,7 @@ init_randr13 (GdkScreen *screen)
   screen_x11->n_monitors = monitors->len;
   screen_x11->monitors = (GdkX11Monitor *)g_array_free (monitors, FALSE);
 
-  return TRUE;
+  return screen_x11->n_monitors > 0;
 #endif
   
   return FALSE;